package com.service;

import com.pojo.Collections;
import com.pojo.Result;
import java.util.List;

public interface CollectionsService {
    Result<Void> collectNote(Integer userId, Integer noteId);
    Result<Void> uncollectNote(Integer userId, Integer noteId);
    Result<Void> uncollectAllByUserId(Integer userId);
    Result<Void> uncollectAllByNoteId(Integer noteId);
    Result<Boolean> isCollected(Integer userId, Integer noteId);
    Result<Integer> getCollectionCountByNoteId(Integer noteId);
    Result<Integer> getCollectionCountByUserId(Integer userId);
    Result<List<Collections>> getCollectionsByUserId(Integer userId);
    Result<List<Collections>> getCollectionsByNoteId(Integer noteId);
}